%h2
  = "Edit Article"
  %span= "#{link_to "Show", :action => :show, :id => @article.id}"
  %span{:style => "margin-right:10px;"}= link_to "Sort", :action => :sortable, :id => @article.id
%div.from
  - form_for :article, :url => { :action => "update", :id => @article } do |f|
    = render "form", :f => f
    = render :partial => "article", :object => @article, :locals => { :edit_mode => true }
    %p.clearfix
      %span.left
        = link_to content_tag(:span, "Content"), "javascript:void(0)", :id => "add_text"
        = link_to content_tag(:span, "Source"), "javascript:void(0)", :id => "add_source"
      %span.right
        = f.submit "Save"
        or
        = link_to 'Back', :back
:javascript
  $(document).ready(function(){
    setupAjax();
    loadEditors();
    loatRemoveContentByAjax();
    $("#add_text").addText();
    $("#add_source").addSource();
  })